package ch.wanandroid.lib.net.base;

import com.google.gson.annotations.SerializedName;

/**
 * @author wulinpeng
 * @datetime: 18/9/16 下午10:23
 * @description:
 */
public class BaseResponse<T> {

    @SerializedName("errorCode")
    int errorCode;

    @SerializedName("errorMsg")
    String errorMsg;

    @SerializedName("data")
    T data;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
